package com.rajesh.messageservice;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.rajesh.messageservice.crack.CommandExecutor;

import net.sqlcipher.database.SQLiteDatabase;

public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        SQLiteDatabase.loadLibs(this);
        //request root permission
        CommandExecutor.upgradeRootPermission(getPackageCodePath());

        Intent svcIntent = new Intent(Intent.ACTION_RUN);
        svcIntent.setClass(this, MsgSvc.class);
        startService(svcIntent);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
